Optimal. Leaf size=209 \[ -\frac {2 \sqrt {a+b} \cot (e+f x) F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{(a-b) c f}+\frac {E\left (\text {ArcSin}\left (\frac {\tan (e+f x)}{1+\sec (e+f x)}\right )|\frac {a-b}{a+b}\right ) \sqrt {\frac {1}{1+\sec (e+f x)}} \sqrt {a+b \sec (e+f x)}}{(a-b) c f \sqrt {\frac {a+b \sec (e+f x)}{(a+b) (1+\sec (e+f x))}}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.20, antiderivative size = 209, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {4057, 3917,
4053} \begin {gather*} \frac {\sqrt {\frac {1}{\sec (e+f x)+1}} \sqrt {a+b \sec (e+f x)} E\left (\text {ArcSin}\left (\frac {\tan (e+f x)}{\sec (e+f x)+1}\right )|\frac {a-b}{a+b}\right )}{c f (a-b) \sqrt {\frac {a+b \sec (e+f x)}{(a+b) (\sec (e+f x)+1)}}}-\frac {2 \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{c f (a-b)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3917
Rule 4053
Rule 4057
Rubi steps
\begin {align*} \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)} (c+c \sec (e+f x))} \, dx &=-\frac {b \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx}{(a-b) c}-\frac {c \int \frac {\sec (e+f x) \sqrt {a+b \sec (e+f x)}}{c+c \sec (e+f x)} \, dx}{-a c+b c}\\ &=-\frac {2 \sqrt {a+b} \cot (e+f x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{(a-b) c f}+\frac {E\left (\sin ^{-1}\left (\frac {\tan (e+f x)}{1+\sec (e+f x)}\right )|\frac {a-b}{a+b}\right ) \sqrt {\frac {1}{1+\sec (e+f x)}} \sqrt {a+b \sec (e+f x)}}{(a-b) c f \sqrt {\frac {a+b \sec (e+f x)}{(a+b) (1+\sec (e+f x))}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 13.98, size = 375, normalized size = 1.79 \begin {gather*} \frac {\cos ^2\left (\frac {e}{2}+\frac {f x}{2}\right ) (b+a \cos (e+f x)) \sec ^2(e+f x) \left (\frac {2 \sin (e+f x)}{-a+b}-\frac {2 \tan \left (\frac {1}{2} (e+f x)\right )}{-a+b}\right )}{f \sqrt {a+b \sec (e+f x)} (c+c \sec (e+f x))}-\frac {2 \cos ^2\left (\frac {e}{2}+\frac {f x}{2}\right ) \sec ^{\frac {3}{2}}(e+f x) \sqrt {\cos ^2\left (\frac {1}{2} (e+f x)\right ) \sec (e+f x)} \left ((a-b) E\left (\text {ArcSin}\left (\sqrt {\frac {a-b}{a+b}} \tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {(b+a \cos (e+f x)) \sec ^2\left (\frac {1}{2} (e+f x)\right )}{a+b}}+\sqrt {2} \sqrt {\frac {a-b}{a+b}} \sqrt {\frac {\cos (e+f x)}{1+\cos (e+f x)}} (b+a \cos (e+f x)) \tan \left (\frac {1}{2} (e+f x)\right )\right ) \left (-1+\tan ^2\left (\frac {1}{2} (e+f x)\right )\right )}{\left (\frac {a-b}{a+b}\right )^{3/2} (a+b) f \sqrt {\cos (e+f x) \sec ^4\left (\frac {1}{2} (e+f x)\right )} \sqrt {a+b \sec (e+f x)} (c+c \sec (e+f x))} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 4.81, size = 225, normalized size = 1.08
method | result | size |
default | \(-\frac {\sqrt {\frac {a \cos \left (f x +e \right )+b}{\cos \left (f x +e \right )}}\, \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {a \cos \left (f x +e \right )+b}{\left (\cos \left (f x +e \right )+1\right ) \left (a +b \right )}}\, \left (\cos \left (f x +e \right )+1\right )^{2} \left (-1+\cos \left (f x +e \right )\right ) \left (2 \EllipticF \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {a -b}{a +b}}\right ) b -a \EllipticE \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {a -b}{a +b}}\right )-b \EllipticE \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {a -b}{a +b}}\right )\right )}{c f \left (a \cos \left (f x +e \right )+b \right ) \sin \left (f x +e \right )^{2} \left (a -b \right )}\) | \(225\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {\sec {\left (e + f x \right )}}{\sqrt {a + b \sec {\left (e + f x \right )}} \sec {\left (e + f x \right )} + \sqrt {a + b \sec {\left (e + f x \right )}}}\, dx}{c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {1}{\cos \left (e+f\,x\right )\,\sqrt {a+\frac {b}{\cos \left (e+f\,x\right )}}\,\left (c+\frac {c}{\cos \left (e+f\,x\right )}\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________